#include "workerInfo.h"

int workerInfoInit(workerInfo_t *pworkerInfo, int workerNum)
{
    pworkerInfo->workerArr = (pthread_t *)malloc(sizeof(pthread_t) * workerNum);
    ERROR_CHECK(pworkerInfo->workerArr, NULL, "malloc workerArr");
    pworkerInfo->workerNum = workerNum;
    return 0;
}
